<style>
    .pageFormContent p{
        float:none;
    }

</style>
<div class="pageContent">
    <form method="post" action="index.php?c=Tuangouad&a=addOne" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone);">
        <div class="pageFormContent" layoutH="56">
            <p style="overflow:hidden">
                <label>所属专区：</label>
                <select class="required" name="buygorup_id" id="mygclassify">
                    <volist name="buygrouplist" id="classify">
                        <option value="{$classify.buygroup_id}">{$classify.name}</option>
                    </volist>
                </select>
            </p>
			<p style="height:auto">
                <label style="float:left">所属分类：</label>
				<div style="margin-left:120px;">
				<volist name="classifylist" id="classify">
					<input type="checkbox" name="classifys[]" value="{$classify.cateid}" />{$classify.name}
				</volist>
				</div>
            </p>
            <div style="overflow: hidden;margin-top:20px">
                <label>专区广告排序：</label>
                <input type="text"   value="" name="sort"   />
            </div>
			
			
            <div style="margin-top:20px;">
                <label>分类主图：</label>
                <div style="position:relative;float:left;">
                    <input type="file" class="add_img" style="opacity: 0;position:absolute;top:0px;left:0px;width: 100px;height:100px;" value="" name="images"  onchange="file(this)" class="required"/>
                    <img src="images/timg.jpg" style="width: 100px;height:100px;border:1px solid #eaeaea;" id="pic_master_img"/>
                </div>
            </div>
            

        </div>
        <div class="formBar">
            <ul>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
                <li>
                    <div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
                </li>
            </ul>
        </div>
    </form>
</div>
<script>

    function file(el) {
        for (var i = 0; i < el.files.length; i++) {
            $('#pic_master_img').attr('src',window.URL.createObjectURL(el.files[i]));
        }
    }


</script>
